﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace AntUITest
{
    public partial class frmSplash : Form
    {
        public frmSplash()
        {
            InitializeComponent();
        }

        public void init()
        {
            if (AppInfo.m_bLogin)
            {
                var frm = new frmMain();
                frm.Show();
            }
            else
            {
                var frm = new frmLogin();
                frm.Show();                
            }
           
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            timer1.Enabled = false;
            // 01 系统初始化
            init();
            
        }

        private void frmSplash_Load(object sender, EventArgs e)
        {
            timer1.Enabled = true;
        }
    }
}
